package com.xx.ch08.demo.demo01;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 许欣
 * 时间：2022/4/20 8:51
 * 描述：
 */
public class MyTest {
    @Test
    public void test(){
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext8.xml");
        People people= (People) context.getBean("people");
        people.getCat().shout();
        people.getDog().shout();
    }
}
